package com.why.remote;

import com.why.dto.NhDto;
import com.why.pojo.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;


//why
public interface NurseRemote {

    //老人基本信息
    @RequestMapping("/oldmandata")
    OldMan oldManData(@RequestParam("oldManId") Integer oldManId);

    //老人列表
    @RequestMapping("/oldmanlist")
    List<OldMan> oldManList(@RequestParam("jobNumber") Integer jobNumber);


    //老人亲属列表
    @RequestMapping("/kinsfolklist")
    List<Kinsfolk> kinsfolkList(@RequestParam("oldManId") Integer oldManId);

    //工作交接
    @RequestMapping("/workHandover")
    public boolean workHandover(@RequestBody WorkHandover workHandover);

    //日常活动列表
    @RequestMapping("/dailylife")
    public NhDto dailyLife(@RequestParam("oldman") Integer oldman, @RequestParam("time") String time);

    //老人病例列表
    @RequestMapping("/caselist")
    public List<Case> caseList(@RequestParam("oldManId")Integer oldman);

    //添加病例
    @RequestMapping("/caseadd")
    public boolean caseAdd(@RequestBody Case ca);

    //获取登录者
    @RequestMapping("/getloginuser")
    public EmployeesAccount getLoginUser(Integer jobNumber);


}